package com.sutong.platform.model.dto.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户注册请求体
 *
 * @author sutong
 */
@Data
public class UserRegisterRequest implements Serializable {

    @NotBlank(message = "账号不能为空")
    @Size(min = 4, message = "用户账号过短")
    private String userAccount;

    @NotBlank(message = "密码不能为空")
    @Size(min = 8, message = "用户密码过短")
    private String userPassword;

    @NotBlank(message = "校验密码不能为空")
    private String checkPassword;

    private static final long serialVersionUID = 1L;
}
